#include "MassViscousADKernel.h"

registerMooseObject("TrilobitaApp", MassViscousADKernel);

InputParameters
MassViscousADKernel::validParams()
{
    auto params = ADKernelGrad::validParams();
    return params;
}

MassViscousADKernel::MassViscousADKernel(const InputParameters& parameters)
    : ADKernelGrad(parameters),
    _mass_viscous_strong_residual(getADMaterialProperty<RealVectorValue>("mass_viscous_strong_residual"))
{}

ADRealVectorValue
MassViscousADKernel::precomputeQpResidual()
{
    return _mass_viscous_strong_residual[_qp];
}
